package request

type FilterGroup struct {
	NameMatch       string `json:"name_match"`
	CreateTimeRange struct {
		Gte string `json:"gte"`
		Lte string `json:"lte"`
	} `json:"createTime_range"`
}

type QueryAllVariables struct {
	GroupBy     map[string]interface{} `json:"groupBy"`
	OrderBy     map[string]string      `json:"orderBy"`
	FilterGroup []FilterGroup          `json:"filterGroup"`
	Pagination  struct {
		Limit int `json:"limit"`
	} `json:"pagination"`
}

type GraphQLRequest struct {
	Query     string            `json:"query"`
	Variables QueryAllVariables `json:"variables"`
}

type TaskType struct {
	Label string `json:"label"`
	Key   string `json:"key"`
}

type WorkOrderDetailGraphQL struct {
	Query     string `json:"query"`
	Variables struct {
		Key string `json:"key"`
	} `json:"variables"`
}
